﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<z.m.db.UserProfile>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	UserProfile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div id="cen">
		<% using (Html.BeginForm()) { %>
		<fieldset>
			<legend>User Profile</legend>
			<table>
				<tr>
					<td><%: Html.LabelFor(m=>m.First_Name) %></td>
					<td><%: Html.TextBoxFor(m=>m.First_Name) %></td>
					<td><%: Html.ValidationMessageFor(m=>m.First_Name) %></td>
				</tr>
				<tr>
					<td><%: Html.LabelFor(m=>m.Last_Name) %></td>
					<td><%: Html.TextBoxFor(m=>m.Last_Name) %></td>
					<td><%: Html.ValidationMessageFor(m=>m.Last_Name) %></td>
				</tr>
				<tr>
					<td><%: Html.LabelFor(m=>m.Phone) %></td>
					<td><%: Html.TextBoxFor(m=>m.Phone) %></td>
					<td><%: Html.ValidationMessageFor(m=>m.Phone) %></td>
				</tr>
				<tr>
					<td><%: Html.LabelFor(m=>m.Address) %></td>
					<td>
						<input type="button" value="Show Map" onclick="showPopup('#map');" />
						<%: Html.TextBoxFor(m => m.Address, new { @class="collapse" })%>
						<%: Html.TextBoxFor(m=>m.MapLocation, new { @class="collapse" }) %></td>
					<td><%: Html.ValidationMessageFor(m=>m.Address) %></td>
				</tr>
			</table>
			<input type="submit" value="Register" />
		</fieldset>
		<%} %>
	</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
